using System;
using System.Collections;
using System.Collections.Generic;

using MemberMgr.Data.Base;

namespace MemberMgr.Data.BusinessObjects
{
    public partial class tSystem : BusinessBase<string>
    {
        #region Declarations

		private string _datakbn = String.Empty;
		private string _datakey = String.Empty;
		private string _data1 = null;
		private decimal? _data2 = null;
		private System.DateTime? _data3 = null;
		private sbyte? _data4 = null;
		private string _data5 = null;
		private string _data6 = null;
		private string _data7 = null;
		private string _data8 = null;
		private string _data9 = null;
		private string _data10 = null;
		
		
		
		#endregion

        #region Constructors

        public tSystem() { }

        #endregion

        #region Methods

        public override int GetHashCode()
        {
            System.Text.StringBuilder sb = new System.Text.StringBuilder();
            
            sb.Append(this.GetType().FullName);
			sb.Append(_datakbn);
			sb.Append(_datakey);
			sb.Append(_data1);
			sb.Append(_data2);
			sb.Append(_data3);
			sb.Append(_data4);
			sb.Append(_data5);
			sb.Append(_data6);
			sb.Append(_data7);
			sb.Append(_data8);
			sb.Append(_data9);
			sb.Append(_data10);

            return sb.ToString().GetHashCode();
        }

        #endregion

        #region Properties

		public override string Id
		{
			get
			{
				System.Text.StringBuilder uniqueId = new System.Text.StringBuilder();
				uniqueId.Append(_datakbn.ToString());
				uniqueId.Append("^");
				uniqueId.Append(_datakey.ToString());
				return uniqueId.ToString();
			}
		}
		
		public virtual string Datakbn
        {
            get { return _datakbn; }
			set
			{
				OnDatakbnChanging();
				_datakbn = value;
				OnDatakbnChanged();
			}
        }
		partial void OnDatakbnChanging();
		partial void OnDatakbnChanged();
		
		public virtual string Datakey
        {
            get { return _datakey; }
			set
			{
				OnDatakeyChanging();
				_datakey = value;
				OnDatakeyChanged();
			}
        }
		partial void OnDatakeyChanging();
		partial void OnDatakeyChanged();
		
		public virtual string Data1
        {
            get { return _data1; }
			set
			{
				OnData1Changing();
				_data1 = value;
				OnData1Changed();
			}
        }
		partial void OnData1Changing();
		partial void OnData1Changed();
		
		public virtual decimal? Data2
        {
            get { return _data2; }
			set
			{
				OnData2Changing();
				_data2 = value;
				OnData2Changed();
			}
        }
		partial void OnData2Changing();
		partial void OnData2Changed();
		
		public virtual System.DateTime? Data3
        {
            get { return _data3; }
			set
			{
				OnData3Changing();
				_data3 = value;
				OnData3Changed();
			}
        }
		partial void OnData3Changing();
		partial void OnData3Changed();
		
		public virtual sbyte? Data4
        {
            get { return _data4; }
			set
			{
				OnData4Changing();
				_data4 = value;
				OnData4Changed();
			}
        }
		partial void OnData4Changing();
		partial void OnData4Changed();
		
		public virtual string Data5
        {
            get { return _data5; }
			set
			{
				OnData5Changing();
				_data5 = value;
				OnData5Changed();
			}
        }
		partial void OnData5Changing();
		partial void OnData5Changed();
		
		public virtual string Data6
        {
            get { return _data6; }
			set
			{
				OnData6Changing();
				_data6 = value;
				OnData6Changed();
			}
        }
		partial void OnData6Changing();
		partial void OnData6Changed();
		
		public virtual string Data7
        {
            get { return _data7; }
			set
			{
				OnData7Changing();
				_data7 = value;
				OnData7Changed();
			}
        }
		partial void OnData7Changing();
		partial void OnData7Changed();
		
		public virtual string Data8
        {
            get { return _data8; }
			set
			{
				OnData8Changing();
				_data8 = value;
				OnData8Changed();
			}
        }
		partial void OnData8Changing();
		partial void OnData8Changed();
		
		public virtual string Data9
        {
            get { return _data9; }
			set
			{
				OnData9Changing();
				_data9 = value;
				OnData9Changed();
			}
        }
		partial void OnData9Changing();
		partial void OnData9Changed();
		
		public virtual string Data10
        {
            get { return _data10; }
			set
			{
				OnData10Changing();
				_data10 = value;
				OnData10Changed();
			}
        }
		partial void OnData10Changing();
		partial void OnData10Changed();
		
        #endregion
    }
}
